<!doctype html>
<html lang="cn" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
    <meta name="generator" content="Hugo 0.80.0">
    <title>管理员首页</title>

    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.css}" rel="stylesheet">

    <style>
        .bd-placeholder-img {
            font-size: 1.125rem;
            text-anchor: middle;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        @media (min-width: 768px) {
            .bd-placeholder-img-lg {
                font-size: 3.5rem;
            }
        }
    </style>

    <link th:href="@{/css/dashboard.css}" rel="stylesheet">
</head>
<body>

<!--头部导航栏-->
<div th:replace="commons/common_admin::topNavigationBar()"></div>

<div class="container-fluid">
    <div class="row">

        <!--侧边栏-->
        <div th:replace="commons/common_admin::sidebar(admin)"></div>

        <!--内容-->
        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-md-4">
            <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
                <h1 class="h2">管理首页</h1>
            </div>

            <!-- 仪表盘 -->
            <div class="row">
                <div class="col-lg-4 col-6">
                    <div class="card text-white bg-primary mb-3" style="max-width: 29rem;">
                        <div class="card-header">#</div>
                        <div class="card-body">
                            <a th:href="@{/admin/addBlog}" style="color: white; text-decoration: none;">
                                <h5 class="card-title">新增博客</h5>
                                <p class="card-text">记心中所想</p>
                            </a>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4 col-6">
                    <div class="card text-white bg-secondary mb-3" style="max-width: 29rem;">
                        <div class="card-header">#</div>
                        <div class="card-body">
                            <a th:href="@{/admin/listBlog}" style="color: white; text-decoration: none;">
                                <h5 class="card-title">[[${blogCount}]]</h5>
                                <p class="card-text">总文章数</p>
                            </a>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4 col-6">
                    <div class="card text-white bg-success mb-3" style="max-width: 29rem;">
                        <div class="card-header">#</div>
                        <div class="card-body">
                            <a th:href="@{/admin/listComment}" style="color: white; text-decoration: none;">
                                <h5 class="card-title">[[${countComment}]]</h5>
                                <p class="card-text">收到的评论数</p>
                            </a>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4 col-6">
                    <div class="card text-white bg-danger mb-3" style="max-width: 29rem;">
                        <div class="card-header">#</div>
                        <div class="card-body">
                            <a th:href="@{/admin/listCategory}" style="color: white; text-decoration: none;">
                                <h5 class="card-title">[[${countCategory}]]</h5>
                                <p class="card-text">分类数量</p>
                            </a>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4 col-6">
                    <div class="card text-white bg-warning mb-3" style="max-width: 29rem;">
                        <div class="card-header">#</div>
                        <div class="card-body">
                            <a th:href="@{/admin}" style="color: white; text-decoration: none;">
                                <h5 class="card-title">标签数</h5>
                                <p class="card-text">标签总数</p>
                            </a>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4 col-6">
                    <div class="card text-white bg-info mb-3" style="max-width: 29rem;">
                        <div class="card-header">#</div>
                        <div class="card-body">
                            <a th:href="@{/admin/recycleBin}" style="color: white; text-decoration: none;">
                                <h5 class="card-title">[[${countRecycleBlog}]]</h5>
                                <p class="card-text">回收站</p>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>
</div>


<div th:replace="commons/common_admin::adminJs"></div>
<!--可选参数-->
<div th:replace="commons/common_admin::searchBlogJs"></div>
</body>
</html>
